/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.risk.hid.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hopes.bizz.risk.common.constant.enums.RiskIntegralDicEnum;
import com.hopes.bizz.risk.common.constant.enums.RiskSysDictEnum;
import com.hopes.boss.admin.api.resolver.DictResolver;
import com.hopes.boss.admin.api.resolver.enums.AdminDictEnum;
import com.hopes.boss.common.entity.BaseLogicEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 隐患检查记录
 *
 * @author daijie
 * @date 2023-07-28 15:20:59
 */
@Data
@TableName("risk_hid_check_task_record")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "隐患检查记录")
public class RiskHidCheckTaskRecordEntity extends BaseLogicEntity {

    private static final long serialVersionUID = 1L;


	/**
	* id
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="id")
    private Long id;

	/**
	* 任务标识
	*/
    @Schema(description="任务标识")
    private Long taskId;

	/**
	* 检查项目
	*/
    @Schema(description="检查项目")
    private String item;

	/**
	* 检查表标识
	*/
    @Schema(description="检查表标识")
    private Long riskHidCheckListConfigId;

	/**
	* 检查表配置标识
	*/
    @Schema(description="检查表配置标识")
    private Long riskHidCheckContentConfigId;

	/**
	* 检查内容
	*/
    @Schema(description="检查内容")
    private String content;

	/**
	* 检查方式
	*/
    @Schema(description="检查方式")
    private String way;

	/**
	* 检查依据
	*/
    @Schema(description="检查依据")
    private String basis;

	/**
	* 情况说明
	*/
    @Schema(description="情况说明")
    private String checkDesc;

	/**
	* 图片
	*/
    @Schema(description="图片")
    private String phone;

	/**
	* 视频
	*/
    @Schema(description="视频")
    private String video;

	/**
	* 结论
	*/
    @Schema(description="结论")
    private Integer conclusion;

	/**
	* 隐患上报标识
	*/
    @Schema(description="隐患上报标识")
    private String hidReportedFlag;

	/**
	* 上报隐患id
	*/
    @Schema(description="上报隐患id")
    private Long hidId;

	/**
	* 描述
	*/
    @Schema(description="描述")
    private String remarks;

	/**
	* 检查人
	*/
    @Schema(description="检查人")
    private Long checkUserId;

	/**
	* 检查时间
	*/
    @Schema(description="检查时间")
    private Date checkDate;

	/**
	* 机构ID
	*/
    @Schema(description="机构ID")
    private Long orgId;

	public String getCheckUserIdStr() {
		return DictResolver.getItemLabelByValue(AdminDictEnum.sys_user, this.checkUserId);
	}

    public String getConclusionStr() {
    	return DictResolver.getItemLabelByValue(RiskSysDictEnum.risk_hid_checklist_task_conclusion, this.conclusion);
	}

}
